<template>
	<div>
		<div>
			<view>物流管理</view>
			<view>
			<view v-for="(item,index) in expersslist" :key="item.expressId">
				序号:{{index}},物流编号:{{item.expressId}},物流型号:{{item.expressModel}},物流名称:{{item.expressName}},物流开始派送时间:{{item.expressStarttime}},物流预计到达时间:{{item.expressEndtime}},商品编号:{{item.goodsId}},创建时间:{{item.createTime}},最后修改时间:{{item.updateTime}},
			</view>
			</view>
		</div>
	</div>
	
</template> -->

<script>
	export default {
		data() {
			return {
				title: '物流管理',
				expersslist:{}
			}
		},
		onLoad() {
			this.handIntegralSelect()
		},
		methods: {
			handIntegralSelect(){
				const value = uni.getStorageSync('userId');
				console.log(value)
				this.userId=value
				uni.request({
				    url: `http://localhost:7000/shop/experss/expersslist`, //接口地址。
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
					method:'POST',
				    success: (res) => {
				        console.log(res.data);
						this.expersslist=res.data.data.records
				    },
				})	
			},
			integral(){
				uni.navigateTo({
					url:"../integral/index"
				})
			},
			handUpdate(){
				uni.navigateTo({
					url:"../modification/index"
				})
			},
			artice(){
				uni.navigateTo({
					url:"../article/index"
				})
			}
		},
	
	}
</script>

<style >

</style>
